﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ListTeacher.aspx.cs" Inherits="Manager_ListTeacher" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
        .auto-style1 {
            height: 25px;
            text-align: left;
        }
        .auto-style2 {
            text-align: center;
            font-size: x-large;
            height: 28px;
            background-color: #99CCFF;
        }
        .auto-style3 {
            height: 25px;
            text-align: right;
        }
        .auto-style4 {
            height: 25px;
            text-align: left;
            width: 85px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table style="width:66%;" align="center">
            <tr>
                <td colspan="7" class="auto-style2"><strong>辅导员信息管理</strong></td>
            </tr>
            <tr>
                <td class="auto-style3">专业：</td>
                <td class="auto-style1">
                    <asp:DropDownList ID="DropDownList1" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td class="auto-style3">班级：</td>
                <td class="auto-style1">
                    <asp:DropDownList ID="DropDownList2" runat="server">
                    </asp:DropDownList>
                </td>
                <td class="auto-style3">姓名：</td>
                <td class="auto-style1">
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </td>
                <td class="auto-style4">
                    <asp:Button ID="Button1" runat="server" Text="搜索" OnClick="Button1_Click" />
                </td>
            </tr>
            <tr>
                <td class="auto-style1" colspan="7">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" Height="260px" style="text-align: center" Width="930px" OnRowCommand="GridView1_RowCommand">
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:BoundField DataField="TeacherID" HeaderText="工号" />
                            <asp:BoundField DataField="TeacherName" HeaderText="姓名" />
                            <asp:BoundField DataField="PassWord" HeaderText="密码" />
                            <asp:BoundField DataField="Sex" HeaderText="性别" />
                            <asp:BoundField DataField="Email" HeaderText="Email" />
                            <asp:TemplateField HeaderText="班级">
                                <ItemTemplate >
                                    <%#getClassName (DataBinder .Eval (Container .DataItem ,"ClassID").ToString ()) %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="修改">
                                <ItemTemplate>
                                    <asp:Button ID="Button2" runat="server" Text="更新" />
                                    &nbsp;<asp:Button ID="Button3" runat="server" Text="删除" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EditRowStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
